package com.wits.comet.chat.schedule;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Component;

import com.wits.qso.service.GroupCache;

/**
 * 
 * 每天晚上清理缓存中的聊天成员数据
 * 
 * @author Administrator
 *
 */
@Component
public class GroupCacheCleaner {

	private static Logger logger = LoggerFactory.getLogger(GroupCacheCleaner.class);

    public void clear(){
    	GroupCache cc=GroupCache.getInstance();
    	logger.info("开始清理聊天成员缓存{}个-------------",cc.size());
    	cc.clear();
    	logger.info("完成清理聊天成员缓存,剩余{}个-------------",cc.size());
   }

}
